import React from 'react';
import {View, Text, Button} from 'react-native'

export default class MyTab extends React.Component {

    render() {
        return <View style={{flex: 1}}>
            <Text>this is MyTab</Text>
            <Button onPress={() => {
                // alert('123')
                this.props.navigation.navigate('Detail1')
            }} title='to Detail1'/>
        </View>
    }
}

